###################################################
#
# Makefile for libT3nsors2.so
# Creator [Xcode -> Makefile Ver: Feb 14 2007 09:18:41]
# Created: [Mon Jul  5 10:30:02 2010]
#
###################################################

#
# Macros
#

CC = g++
CC_OPTIONS = -O3
LIB_OPTIONS = -shared -fPIC -O3


#
# INCLUDE directories for libT3nsors2.so
#

INCLUDE = -L.


#
# Build libT3nsors2.so
#

libT3nsors2 : 	matrix.cpp	others.cpp	domain.cpp	vector.cpp	scalar.cpp
	$(CC) $(LIB_OPTIONS) matrix.cpp others.cpp domain.cpp vector.cpp scalar.cpp -o libT3nsors2.so

clean : 
		rm main libT3nsors2.so *.o

#
# Build the parts of MW
#

# Item -- MW --
./MW : MW.cpp
	$(CC) $(CC_OPTIONS) MW.cpp -c $(INCLUDE) -o ./MW.o


# Item -- MWDots --
./MWDots : MWDots.cpp
	$(CC) $(CC_OPTIONS) MWDots.cpp -c $(INCLUDE) -o ./MWDots.o


# Item -- MWBounds --
./MWBounds : MWBounds.cpp
	$(CC) $(CC_OPTIONS) MWBounds.cpp -c $(INCLUDE) -o ./MWBounds.o


# Item -- MWPrint --
./MWPrint : MWPrint.cpp
	$(CC) $(CC_OPTIONS) MWPrint.cpp -c $(INCLUDE) -o ./MWPrint.o


# Item -- MWSolve --
./MWSolve : MWSolve.cpp
	$(CC) $(CC_OPTIONS) MWSolve.cpp -c $(INCLUDE) -o ./MWSolve.o


# Item -- MWRK --
./MWRK : MWRK.cpp
	$(CC) $(CC_OPTIONS) MWRK.cpp -c $(INCLUDE) -o ./MWRK.o


# Item -- MW --
MWAll : MW MWDots MWBounds MWPrint MWRK MWSolve


# Item -- main --
./main : main.cpp MW.cpp MWDots.cpp MWBounds.cpp MWPrint.cpp MWRK.cpp MWSolve.cpp
	$(CC) $(CC_OPTIONS) MW*.o main.cpp $(INCLUDE) -lT3nsors2 -lbbhutil -lutilio -o ./main


##### END RUN ####
